from django.db import models

from account.models import User
from article.models import Article


# Create your models here.

class comment(models.Model):
    u = models.ForeignKey(User,on_delete=models.CASCADE)
    p = models.ForeignKey(Article,on_delete=models.CASCADE)
    content = models.TextField(null=True)
    like = models.ManyToManyField(User,related_name='comment_like',blank=True)
    upload_time = models.BigIntegerField()

